﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="SelectedAttrsToOpts.aspx.cs" Inherits="ColorApplication.color.SelectedAttrsToOpts" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="adminContent">
        <h2>Select Attributes for Options</h2>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td>
                    <p class="p headMsg bigFont">
                        <asp:Label runat="server" ID="lblChooseAttrsMessage">Select the attributes you want to show, click Update button to confirm.</asp:Label>
                    </p>
                    <asp:Button runat="server" ID="btnSaveTop" OnClick="SaveAttributesForOption" Text="Update" CssClass="padding5 margin5"/>
                    <asp:Label runat="server" ID="errorMessage" ForeColor="Blue" Visible="False"></asp:Label>
                    <p class="p pHead bigFont">
                        Attribute Family
                    </p>
                    <asp:GridView ID="grdVwAttribute" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
                        Width="100%" ShowHeader="False" CellPadding="1" ForeColor="#333333" GridLines="None">
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkSelectedForOption" runat="server" />
                                </ItemTemplate>
                                <ItemStyle Width="5%" HorizontalAlign="Right" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" ReadOnly="True"
                                SortExpression="Id" Visible="False" />
                            <asp:TemplateField HeaderText="Attribute Family" SortExpression="description">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblAttributeFamily"
                                        AssociatedControlID="chkSelectedForOption"></asp:Label>
                                    <asp:HiddenField runat="server" ID="hfViewAttribute" />
                                </ItemTemplate>
                                <ItemStyle Width="50%" HorizontalAlign="Left" VerticalAlign="Middle" />
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle VerticalAlign="Top" BackColor="#EEEEEE" Height="40px" />
                        <AlternatingRowStyle BackColor="#F8F8F8" Height="40px" />
                    </asp:GridView>
                    <asp:Button runat="server" ID="btnSaveBottom" OnClick="SaveAttributesForOption" Text="Update" CssClass="padding5 margin5"/>
                </td>
            </tr>
        </table>    

    </div>
</asp:Content>
